package za.um.td.entity.level.gui;

import za.um.td.entity.level.AbstractTerrain;

import com.jme.entity.Entity;
import com.jme.math.Vector2f;
import com.jme.math.Vector3f;
import com.jme.scene.Node;

public class LevelGui extends Entity {

	private MiniMap miniMap;
	private AbstractTerrain terrain;

	public LevelGui(String id, AbstractTerrain terrain) {
		super(id);
		this.terrain = terrain;
		initSpatial();
	}

	private void initSpatial() {
		// All the GUI's widgets will be attached to this node
		Node node = new Node();

		// Add the minimap
		miniMap = new MiniMap("MiniMap Entity", new Vector2f(105, 105), 200,
				200, terrain);
		node.attachChild(miniMap.getSpatial());

		setSpatial(node);
	}

}
